﻿#ifndef OGLMANAGER_H
#define OGLMANAGER_H

#include <QOpenGLFunctions_3_3_Core>
#include "camera.h"
#include "shader.h"
#include <QOpenGLTexture>
#include "texture2d.h"

class OGLManager
{
public:
    OGLManager(GLuint w, GLuint h);
    ~OGLManager();

    void init();
    void processInput(GLfloat dt);
    void update(GLfloat dt);
    void resize(GLuint w, GLuint h);
    void draw(GLfloat dt);


    GLboolean keys[1024];
    Camera *camera;
private:
    QOpenGLFunctions_3_3_Core *core;
    GLuint width;
    GLuint height;
    //---------------------待删除---------------------

    Texture2D texture1;
    Texture2D texture2;


    //---------------------待删除---------------------

};

#endif // OGLMANAGER_H
